package fec

import "github.com/lucas-clemente/quic-go/internal/protocol"

type constantRedundancyController struct {
	nRepairSymbols 	uint
	nDataSymbols		uint
}

var _ RedundancyController = &constantRedundancyController{}

func NewConstantRedundancyController(nDataSymbols uint, nRepairsymbols uint) RedundancyController {
	return &constantRedundancyController{nDataSymbols: nDataSymbols, nRepairSymbols: nRepairsymbols}
}

func (*constantRedundancyController) OnPacketLost(protocol.PacketNumber) {}

func (*constantRedundancyController) OnPacketReceived(protocol.PacketNumber) {}

func (c *constantRedundancyController) GetNumberOfDataSymbols() uint {
	return c.nDataSymbols
}

func (c *constantRedundancyController) GetNumberOfRepairSymbols() uint {
	return c.nRepairSymbols
}
